<legend><%= title %></legend>
<table class="table table-bordered table-striped">
  <thead>
    <tr>
      <th>终端</th>
      <th>流量</th>
      <th>开始时间</th>
      <th>结束时间</th>
      <th>采集时间</th>
    </tr>
  </thead>
  <tbody>
    <% @traffics.each do |traffic| %>
      <tr id='traffic-<%= traffic.id %>'>
        <td>
          <%= traffic.device.mac %>
        </td>
        
        <td>
          <%= traffics_friendly_format traffic.flow.to_i %> 
        </td>
        <td>
          <%= traffic.start_at.stamp("2013-03-12 22:01:01") %> 
        </td>
        <td>
          <%= traffic.end_at.stamp("2013-03-12 22:01:01") %>
        </td>
        <td width='180'>
          <%= traffic.created_at.stamp("2013-03-12 22:01:01") %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<div class="col-sm-12 text-right"><%= paginate @traffics, :remote => true %></div></div>
